﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

namespace Base
{
    /// <summary>
    /// Summary description for BasePage
    /// </summary>
    /// 
    public class BasePage : Page
    {
        public BasePage()
        {
        }

        //日志记录
        protected string functionName { get; set; }

        protected override void OnInit(EventArgs e)
        {
            if (HttpContext.Current.Session["user"] == null)
            {

                this.ClientScript.RegisterStartupScript(this.GetType(), "redirect", "top.window.main.relogin();", true);
              //  Response.End();
            }
            base.OnInit(e);
        }
    }
}